import serial
ser = serial.Serial()
ser.baudrate = 57600
ser.port = '/dev/ttyACM0'
ser.open()
print(ser.is_open)

print("port %s is open at a rate of %d" % (ser.name, ser.baudrate))
ser.write(b'hello')
ser.close()
